import 'package:flutter/material.dart';
import 'package:flutter_scaffold/flutter_scaffold.dart';

class ScrollViewDemoPage extends StatefulWidget {
  @override
  State createState() {
    return _ScrollViewDemoPageState();
  }
}

class _ScrollViewDemoPageState extends State<ScrollViewDemoPage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("scrollView 使用")),
      body: Scrollbar(
        child: SingleChildScrollView(
          physics: BouncingScrollPhysics(),
          child: Column(
            children:
                "AJDHFSDDFSHDFHDSHFSDFUSHFSDFSDCHSFSDFJ"
                    .split("")
                    .map(
                      (c) => Container(
                        alignment: Alignment.center,
                        width: double.infinity,
                        child: Text(c),
                      ),
                    )
                    .toList(),
          ),
        ),
      ),
    );
  }
}
